PSPSDK=$(shell psp-config --pspsdk-path)
PSPDIR=$(shell psp-config --psp-prefix)
TARGET_LIB = ../../libmpcdec.a

OBJS = huffman.o \
	mpc_decoder.o \
	mpc_reader.o \
	requant.o \
	streaminfo.o \
	synth_filter.o \
	mpc_bits_reader.o \
	mpc_demux.o \
	crc32.o \
	huffman-bcl.o 

INCDIR = ../include
CFLAGS = -O2 -G0 -fomit-frame-pointer -fPIC -fpic -fvisibility=hidden 
CXXFLAGS = $(CFLAGS) -fno-rtti
ASFLAGS = $(CFLAGS) -no-undefined -version-info 7:0:1

include $(PSPSDK)/lib/build.mak

clean:
	rm -f *.o
	rm -f ../../libmpcdec.a